package cn.lingyangwl.agile.infra.gen.model.rqrs;

import cn.lingyangwl.agile.model.constants.*;
import com.alibaba.fastjson2.JSONObject;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 渲染模板请求
 * @author shenguangyang
 */
@Data
public class RenderTemplateReq {
    private String name = "default";

    /**
     * 模板内容
     */
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String content;

    /**
     * 模板参数
     */
    @NotNull(message = ValidationCons.NOT_EMPTY)
    private JSONObject params;
}
